﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <LinearGradientBrush x:Key="NormalBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="White" Offset="0.35"/>
        <GradientStop Color="#afafaf" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="PressBrush" StartPoint="0,1" EndPoint="0,0">
        <GradientStop Color="White" Offset="0.35"/>
        <GradientStop Color="#afafaf" Offset="1"/>
    </LinearGradientBrush>

    <ControlTemplate x:Key="StopButton" TargetType="{x:Type Button}">
        <Rectangle Name="Base" Fill="{StaticResource NormalBrush}" Stroke="#66000000" RadiusX="2" RadiusY="2"/>
        <ControlTemplate.Triggers>
            <Trigger Property="IsPressed" Value="True">
                <Setter TargetName="Base" Property="Fill" Value="{StaticResource PressBrush}" />
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
</ResourceDictionary>